package com.advertise.dao;

import java.util.List;


import com.advertise.model.User;

public class UserDAO_Impl extends BaseDAO_Impl<User, Integer> implements UserDAO_IFace {

	
	public User getUserByLoginId(String loginName) {
		String queryHQL = "from User";
		Object[] param = new Object[]{loginName};
		List<User> result = getHibernateTemplate().find(queryHQL);
		
		if(result!=null&&result.size()>0){
			return result.get(0);
		}
		else{
			return null;
		}
		
	}

	

}
